package com.matrix.java.chap_03;

import java.util.Scanner;

/*
    几柯：点是否在圓内？
 */
public class Ex3_22 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("Enter a point with two coordinates: ");
        double x = input.nextDouble();
        double y = input.nextDouble();
        double distance = Math.sqrt(x*x+y*y);
        if (distance <= 10){
            System.out.println("Point ("+x+","+ y+") is in the circle");
        }else {
            System.out.println("Point ("+x+","+ y+") is not in the circle");
        }
    }
}
